/*
 * @(#)ErrorSqlDao.java   1.0  2021年11月12日
 * 
 * Copyright (c)	2014-2020. All Rights Reserved.	GuangZhou hhmk Technology Company LTD.
 */
package com.swift.dts.dao;

import java.util.List;

import com.swift.dts.dao.model.ErrorSqlTable;
import com.swift.dts.dao.model.ErrorSqlTableKey;
import com.swift.dts.model.DtsBinlogMessage;
import com.swift.dts.model.SqlObject;

/**
 * 添加说明 
 * @author zhengjiajin
 * @version 1.0 2021年11月12日
 */
public interface ErrorSqlTableDao {

    public void writeErrorSql(String destination,DtsBinlogMessage message,SqlObject sqlObject,String errorRem);
    
    public void writeSuccessSql(String destination,DtsBinlogMessage message,SqlObject sqlObject); 
    
    public void save(ErrorSqlTable errorSqlTable);
    
    public void delete(Long sqlId);
    
    public ErrorSqlTable get(Long sqlId);
    
    public void delete(ErrorSqlTableKey key);
    
    public List<ErrorSqlTable> list(ErrorSqlTableKey key);
    
    public List<ErrorSqlTable> list(ErrorSqlTableKey key,int start,int limit);
    
    public int count(ErrorSqlTableKey key);
}
